package com.shop.cloud.model.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.shop.cloud.model.request.RestfulRequest;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author Alex
 */
@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class GetGoodsCategoryListRequest extends RestfulRequest {

    private static final long serialVersionUID = -3286520204644035655L;
    
    @JsonProperty("getAll")
    @ApiModelProperty(value = "是否获取所有，1是，0否", example = "", required = false)
    private int getAll;
    
    @JsonProperty("parentId")
    @ApiModelProperty(value = "上级分类id，如果为0则获取一级分类。当getAll为0时有效", example = "", required = false)
    private Long parentId;
    
    @JsonProperty("type，1：鸿福商城，2：积分商城，3：旅游专区")
    @ApiModelProperty(value = "种类", example = "", required = false)
    private int type;
    
    @JsonProperty("name")
    @ApiModelProperty(value = "名称关键词", example = "", required = false)
    private String name;

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getGetAll() {
		return getAll;
	}

	public void setGetAll(int getAll) {
		this.getAll = getAll;
	}
}
